//
//  FloatSelectView.h
//  AifudaoDrawer
//
//  Created by Ji Hu on 12-6-5.
//  Copyright (c) 2012年 爱辅导. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol Selectable <NSObject>

-(void) onSelectComplete:(CGRect) selectRect;
-(void) onCancel;

@end

@interface FloatSelectView : UIView
{
    CGRect mSelectArea;
    CGFloat cornerRectWidth;
    
    id<Selectable> delegate;
    int mode;
}

@property (nonatomic,assign) id<Selectable> delegate;
@property (nonatomic,retain) UIButton *okButton;
@property (nonatomic,retain) UIButton *cancelButton;

-( CGRect )getOkButtonFrame;
-( CGRect )getCancelButtonFrame;
-(CGRect) getCornerRect:(int)position withWidth:(CGFloat)width;

@end
